package com.ynny.extends_.bean06;

public class MangerTest {

    public static void main(String[] args) {

//        Manager manager = new Manager();
//        manager.work();


        Teacher teacher = new Teacher();
//        teacher.work();

        //子类调用 eat() 如果 找不到 这个方法，往父类寻找
        //子类的方法进行覆盖后 优先级更改
//        teacher.eat();
        teacher.work();

    }

}
